<template>
  <div class="main-panel">
    <iframe :src="url"></iframe>
  </div>
</template>

<script>
export default {
  name: 'index',
  data () {
    return {
      url: this.$route.query.url
    }
  },
  watch: {
    $route (route) {
      this.url = route.query.url
    }
  }
}
</script>

<style scoped>
iframe{
  width: 100%;
  height: calc(100vh - 150px);
  border: none;
}
</style>
